<?php

/**
 * 网站后台路由 -- 权限表
 */

Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/permission/'],function() {
	
	//更新权限表
	Route::get('datalist', 'PermissionController@listData');
	Route::get('datatablelist', 'PermissionController@bootstrapTableList');
	Route::get('refresh', 'PermissionController@permissionRefresh');
    //设置权限名称
    Route::post('editname', 'PermissionController@toEditNameData');

    //修改状态
    Route::get('status/{id}/{status?}', 'PermissionController@toStatusData');

    Route::post('remark', 'PermissionController@toRemarkData');
});

